package com.yisoo.ubag.iot.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yisoo.common.utils.PageUtils;
import com.yisoo.common.utils.Query;

import com.yisoo.ubag.iot.dao.MsgBackDao;
import com.yisoo.ubag.iot.entity.MsgBackEntity;
import com.yisoo.ubag.iot.service.MsgBackService;


@Service("msgBackService")
public class MsgBackServiceImpl extends ServiceImpl<MsgBackDao, MsgBackEntity> implements MsgBackService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MsgBackEntity> page = this.page(
                new Query<MsgBackEntity>().getPage(params),
                new QueryWrapper<MsgBackEntity>()
        );

        return new PageUtils(page);
    }

}